package com.qiyuexinxi.chat.dto.request;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel("动态发布接口")
@Data
public class DynamicAddRequest {

    @ApiModelProperty(value = "用户id",required = true)
    @NotNull(message = "用户id不能为空")
    private Integer userId;

    @ApiModelProperty(value = "动态类型 1仅文字 2文字+图片 3文字+视频",required = true)
    @NotNull(message = "动态类型不能为空")
    private int dynamicType;

    @ApiModelProperty(value = "动态内容",required = true)
    @NotNull(message = "动态内容不能为空")
    private String content;

    @ApiModelProperty("用户图片id json格式")
    private JSONArray pictureUrls;

    @ApiModelProperty(value = "发布地址",required = true)
    @NotNull(message = "发布地址不能为空")
    private String address;

}
